<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/taglibs/iss" prefix="iss"%>
<HTML>
<HEAD>
<TITLE>MKTB15</TITLE>
<LINK href="../css/IDEA.css" type=text/css rel=stylesheet>
<SCRIPT language=javascript src="../js/IDEA_body.js"
	type=text/javascript></SCRIPT>
<script src="../js/main.js" language="javascript" type="text/javascript"></script>
<link rel="stylesheet" href="../css/validationEngine.jquery.css"
	type="text/css" />
<script src="../js/jquery-1.6.min.js" type="text/javascript"></script>
<script src="../js/languages/jquery.validationEngine-zh_CN.js"
	type="text/javascript" charset="utf-8"></script>
<script src="../js/jquery.validationEngine.js" type="text/javascript"
	charset="utf-8"></script>
<script src="../My97DatePicker/WdatePicker.js" language="JavaScript"
	type="text/JavaScript"></SCRIPT>
<script>
	jQuery(document).ready(function() {
		jQuery("#mainform").validationEngine({
			autoHidePrompt : true
		});
	});
	function check(obj)
	{
		var startTime=$("#startUseTime").val();  

    var start=new Date(startTime.replace("-", "/").replace("-", "/"));  

    var endTime=$("#endUseTime").val();  

    var end=new Date(endTime.replace("-", "/").replace("-", "/"));  


    if(end<=start){  

       alert('结束时间不能小于开始时间');
       $("#endUseTime").val("");
       return;

    }  
  
    

    return true; 

	}
</script>

</HEAD>

<body>
	<TABLE width="100%" height="100%" border=0 cellPadding=0 cellSpacing=0>
		<TBODY>
			<TR>
				<TD height="100%" bgcolor="#FFFFFF" class=right_bg><iss:blank />
					<table width="100%" border="0" align="center" cellpadding="0"
						cellspacing="0">
						<tr>
							<td width="20">&nbsp;</td>
							<td class="text_12_title">当前位置: <a href="#" class="blue_1">首页</a>
								&gt; <a href="#"
								class="blue_1">申请导师</td>
						</tr>
					</table>

					<table width="98%" border="0" cellpadding="0" cellspacing="0"
						background="../images/bg_body_title.jpg" class="list_border1">
						<tr>
							<td width="10">&nbsp;</td>
							<td>
								<table border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td><img src="../images/pic_title_1.jpg" name="imgL1"
											width="8" height="24" id="imgL1"></td>
										<td valign="bottom" class="text_12_border" nowrap="nowrap"
											style="cursor: hand;" id="tdTitle1">申请创业导师</td>
										<td><img src="../images/pic_title_2.jpg" name="imgR1"
											width="8" height="24" id="imgR1"></td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
					<table width="98%" border="0" cellpadding="0" cellspacing="0"
						class="list_border2" id="table2">
						<tr>
							<td align="center" valign="top"><iss:blank /> <iss:blank />
								<form id="mainform" method="post"
									action="../servicecreate/applyService.html">
									<TABLE class=list_border cellSpacing=0 cellPadding=0
										width="98%" border=0>
										<TBODY>
											<TR>
												<TD class=list_td_gray width="19%" align="right">导师姓名：</TD>
												<TD class=list_td_white_line width="81%">
													${tutorBean.tutorName}</TD>
											</TR>
											<TR>
												<TD class=list_td_gray width="19%" align="right">导师照片：</TD>
												<TD class=list_td_white_line width="81%">
													
													<img WIDTH="90" HEIGHT="120" src="<%=request.getContextPath()%>${tutorBean.imagePath}" >
													</TD>
											</TR>											
											<TR>
												<TD class=list_td_gray width="19%" align="right">导师简介：</TD>
												<TD class=list_td_white_line width="81%">
												${tutorBean.shortDesc}
												</TD>
											</TR>
											<TR>
												<TD class=list_td_gray width="19%" align="right">导师详细介绍：
												</TD>
												<TD class=list_td_white_line width="81%">
													${tutorBean.longDesc}</TD>
											</TR>											
											
											<c:if test="${opType eq 2 }">
												<TR>
													<TD class=list_td_gray width="19%" align="right">
														公司名称：</TD>
													<TD class=list_td_white_line width="81%">
													<input type="hidden" name="companyId" value="${companyId}">
													<input
														name="companyName" id="companyName" type="text"
														class="validate[required] input2" value="${companyName }" readonly><font
														color="red" ><span>*</span> </font></TD>
												</TR>
												<TR>
													<TD class=list_td_gray width="19%" align="right">联系人：</TD>
													<TD class=list_td_white_line width="81%"><input
														name="contacts" id="contacts" type="text"
														class="validate[required] input2"><font
														color="red"><span>*</span> </font></TD>
												</TR>
												<TR>
													<TD class=list_td_gray width="19%" align="right">
														联系电话：</TD>
													<TD class=list_td_white_line width="81%"><input
														name="telephone" id="telephone" type="text"
														class="validate[required] input2"><font
														color="red"><span>*</span> </font></TD>
												</TR>
												<TR>
													<TD class=list_td_gray width="19%" align="right">
														需求期间：</TD>
													<TD class=list_td_white_line width="81%"><input
														type="hidden" name="type" value="3"> <input
														type="hidden" name="needApproval"
														value="1"> <input
														type="hidden" name="serviceType"
														value="11"> <input
														type="hidden" name="serviceID"
														value="${tutorBean.id}"> <input
														name="startUseTime" id="startUseTime" type="text"
														class="Wdate validate[required]" height="20"
														onclick="WdatePicker();" onchange="check()" readonly>&nbsp;- &nbsp; <input
														name="endUseTime" id="endUseTime" type="text"
														class="Wdate validate[required]" height="20"
														onclick="WdatePicker();" onchange="check()" readonly><font
														color="red"><span>*</span> </font></TD>
												</TR>
												<TR>
													<TD class=list_td_gray width="19%" align="right">备注：</TD>
													<TD class=list_td_white_line width="81%"><textarea
															style="height:150px" rows="10" maxlength="1024"
															class="validate[maxSize[1024]] input2"
															name="mark"></textarea>
													</TD>
												</TR>
											</c:if>
										</TBODY>
									</TABLE>

									<iss:blank />
									<table width="98%" height="28" border="0" cellpadding="0"
										cellspacing="0">
										<tr>
											<td><c:if test="${opType eq 2 }">
													<input type="submit" class="button_normal" value="申请" />&nbsp;
											</c:if> <input class="button_normal" type="button" value="返回"
												onClick="history.back(-1);" /></td>
										</tr>
									</table>
								</form>
							</td>
						</tr>
					</table>
				</TD>
			</TR>

		</TBODY>
	</TABLE>
</body>
</HTML>
